<?php

/**
*3组 项目
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/list22', function () {
    return view('homes/list22');
});

/*------------------------前台路由----- start ----------------------*/

// 首页
Route::any('/index','Home\IndexController@index');

//登陆页面
Route::any('/login','Home\LoginController@login');
//注册页面
Route::any('/register','Home\LoginController@register');
//登陆退出
Route::any('/login_out','Home\LoginController@login_out');

//检测唯一性
Route::any('/check','Home\LoginController@check_only');

// 公司
Route::any('/companylist','Home\CompanyController@companylist');
// 论坛
Route::any('toForum','Home\ToForumController@toForum');

/********************** 我的简历 **** start ************************/

// 基本信息
Route::any('jianli','Home\JianliController@jianli');
// 期望工作
Route::any('work','Home\JianliController@work');
// 工作经历
Route::any('work_experience','Home\JianliController@work_experience');
// 项目经验
Route::any('project_experience','Home\JianliController@project_experience');
// 教育背景
Route::any('school','Home\JianliController@school');
//自我描述
Route::any('self','Home\JianliController@self');
//作品展示
Route::any('homework','Home\JianliController@homework');
// 添加入库
Route::any('add','Home\JianliController@add');
// 上传附件
Route::any('upload','Home\JianliController@upload');

/********************** 我的简历 **** end ************************/

//职位详情页
Route::any('jobdetail','Home\SearchController@jobdetail');

// 收藏的职位
Route::any('collections','Home\CollectionsController@collections');
// 我的订阅
Route::any('subscribe','Home\SubscribeController@subscribe');

// 发布职位
Route::any('create','Home\CreateController@create');

//搜索页面
Route::any('/list','Home\IndexController@list');
//首页搜索
Route::any('/search','Home\SearchController@search');
//搜索工作地点
Route::any('home/city_se','Home\SearchController@city_se');
//搜索薪资
Route::any('home/pay_se','Home\SearchController@pay_se');
//搜索经验
Route::any('home/suffer_se','Home\SearchController@suffer_se');
//搜素学历
Route::any('home/background_se','Home\SearchController@background_se');
//切换城市
Route::any('home/qhcs_qhcs','Home\IndexController@qhcs_qhcs');

/*------------------------前台路由----- end ----------------------*/


/*------------------------后台路由----- start ----------------------*/

Route::any('/admins/login','Admin\LoginController@index');
Route::any('/admins/index','Admin\IndexController@index');
Route::any('/admins/typography','Admin\IndexController@typography');

//主页
//登录
Route::any('/admin/login','admin\IndexController@login');
Route::any('/admin/enterpriseLogo','admin\EnterpriseController@enterpriseLogo');
Route::any('/admin/outLogin','admin\IndexController@outLogin');
//公共
//权限控制
Route::group(['middleware'=>'admin_xf'],function(){
	//admin
    Route::any('/admin/index','admin\IndexController@index');
	Route::any('/admin/top','admin\IndexController@top');
	Route::any('/admin/left','admin\IndexController@left');
	Route::any('/admin/main','admin\IndexController@main');
	Route::any('/admin/checku','admin\IndexController@checku');
	Route::any('/admin/adminList','admin\AdminController@adminList');
	Route::any('/admin/roleList','admin\AdminController@roleList');
	Route::any('/admin/powerList','admin\AdminController@powerList');
	//config
	Route::any('/admin/configShow','admin\ConfigsController@configShow');
	Route::any('/admin/sliderList','admin\ConfigsController@sliderList');
    Route::any('/admin/sliderClick','admin\ConfigsController@sliderClick');
    Route::any('/admin/sliderAdd','admin\ConfigsController@sliderAdd');
	Route::any('/admin/linkList','admin\ConfigsController@linkList');
	Route::any('/admin/liandong','admin\ConfigsController@liandong');
	Route::any('/admin/cityAdd','admin\ConfigsController@cityAdd');
	//Enterprise
	Route::any('/admin/enterprise','admin\EnterpriseController@enterprise');
	Route::any('/admin/enterpriseImg','admin\EnterpriseController@enterpriseImg');
	Route::any('/admin/myResume','admin\EnterpriseController@myResume');
	Route::any('/admin/myMessage','admin\EnterpriseController@myMessage');
	Route::any('/admin/sendMessage','admin\EnterpriseController@sendMessage');

    //postOffice  职位发布
    Route::any('/admin/postofficeList','admin\PostofficeController@postofficeList');
    Route::any('/admin/postofficeAdd','admin\PostofficeController@postofficeAdd');
    Route::any('/admin/postofficeDelete','admin\PostofficeController@postofficeDelete');
    Route::any('/admin/postofficeUpdate','admin\PostofficeController@postofficeUpdate');

	//post
	Route::any('/admin/positionList','admin\PositionController@positionList');
	Route::any('/admin/positionAdd','admin\PositionController@positionAdd');
	Route::any('/admin/positionUpdate','admin\PositionController@positionUpdate');
	//user
	Route::any('/admin/userList','admin\UserController@userList');
	Route::any('/admin/resumeList','admin\UserController@resumeList');
	Route::any('/admin/messageList','admin\UserController@messageList');
	Route::any('/admin/enterpriseList','admin\UserController@enterpriseList');

});

/*------------------------后台路由----- end ----------------------*/
